﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SharedTextEditor
{
  [Serializable]
  public class DocumentLine : IComparable<DocumentLine>
  {

    public DocumentLine(int lineNumber, string text, bool locked)
    {
      this.LineNumber = lineNumber;
      this.Text = text;
      this.Locked = locked;
    }

    public int LineNumber { get; set; }

    public string Text { get; set; }

    public bool Locked { get; set; }
      
    public int CompareTo(DocumentLine other)
    {
        return LineNumber - other.LineNumber;
    }
  }
}
